#pragma once
#include "GameRes.h"

enum cursor_type {
	CUR_NORMAL		=	0,
	CUR_ATTACK		=	1,
	CUR_GIVE		=	2,
	CUR_TRADE		=	3,
};

class MouseCursor : public cocos2d::Sprite
{
public:
	MouseCursor();
	~MouseCursor();
	CREATE_FUNC(MouseCursor);

	void			setCursor(cursor_type type);

	bool			IsVisible(void) const { return !_hide; }
	void			ShowCursor(bool show);
protected:
	virtual bool	init();
	virtual	void	update(float dt);
private:
	animate_sequene	_ani;
	int				_type;
	bool			_hide;
};